package com.ellricky.baselib.adapter

import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.ellricky.baselib.R
import com.ellricky.baselib.entity.new.MsgTip

class MsgTipAdapter(private val index: Int) :
    BaseRecyclerAdapter<MsgTip>(R.layout.base_adapter_msg_tip) {
    public override fun onBindViewHolder(holder: SmartViewHolder, model: MsgTip, position: Int) {
        holder.text(R.id.tvName, model.member_name)
        holder.text(
            R.id.tvDay,
            if (index == 0) "还有 ${model.birthday} 天生日" else "还有${model.basic_num}课时"
        )
    }
}